package com.hjx.mapper;

import com.hjx.entity.SysRole;
import com.hjx.entity.SysUser;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2020/6/10 - 9:54
 */
public interface SysUserMapper {
    public SysUser findOne(String uid);
    public List<SysUser> findAll();
    //多条件查询
    public List<SysUser> findBy(SysUser sysUser);
    //根据用户名查询密码
    public String findPassword(String uno);
    public boolean insert(SysUser sysUser);
    public boolean delete(String uid);
    public boolean update(SysUser sysUser);
    //用户修改自己的信息
    public boolean updateMyself(SysUser sysUser);
    //根据帐号查询用户和对应角色
    public SysUser findUserAndRole(String uno);
    //查询全部的用户和对应角色
    public List<SysUser> findAllUserAndRole();
    //根据帐号查询用户没有的角色
    public List<SysRole> findNoGetRoleByUno(String uno);


}
